import request from '@/utils/request'

//登录检查

export const checkLogin = data => {
    return request({
        url: '/oa/checkLogin',
        method: 'post',
        data
    })
}

//获取用户职位
export const getUserPosition = query => {
    return request({
        url: '/oa/staff/staff_position_role',
        method: 'get',
        params: query
    })
}


export const register = data => {
    return request({
        url: '/oa/supplier/register',
        method: 'post',
        data
    })
}

export const setUser = data => {
    return request({
        url: '/oa/setUser',
        method: 'post',
        data
    })
}

//获取用户职位
export const getUsr = query => {
    return request({
        url: '/oa/usr',
        method: 'get',
        params: query
    })
}

//修改密码
export const resetPwd = data => {
    return request({
        url: '/oa/resetPwd',
        method: 'post',
        data
    })
}